package com.recruit.common.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 各个职位的浏览量随时间的动态柱状（时间区间是最早发布的职位----最新发布的职位的浏览总数）
 * @author Eval
 * @since 2023-12-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class PosClkCtDO extends BaseModel {

    /**
     * 职位名称
     */
    private String title;

    /**
     * 时间
     */
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date dt;

    /**
     * 浏览量
     */
    private Integer clkNum;


    public PosClkCtDO() {}

    public PosClkCtDO(String title, Date dt, Integer clkNum) {
        this.title = title;
        this.dt = dt;
        this.clkNum = clkNum;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getDt() {
        return dt;
    }

    public void setDt(Date dt) {
        this.dt = dt;
    }

    public Integer getClkNum() {
        return clkNum;
    }

    public void setClkNum(Integer clkNum) {
        this.clkNum = clkNum;
    }
}
